package com.lollipop.synthential.java8.lambda.syntax.Closure;

import java.util.function.Consumer;

/**
 * @Author: J.K
 * @Date: 2021-02-16 16:10
 * @Description:
 */
public class ClosureDemo2 {
    public static void main(String[] args) {
        int a = 10;
        Consumer<Integer> c = ele -> System.out.println(ele);
        c.accept(20);
    }
}
